--- a/nss/coreconf/nsinstall/nsinstall.c
+++ b/nss/coreconf/nsinstall/nsinstall.c
@@ -32,8 +32,8 @@ typedef unsigned int mode_t;
 
 #define HAVE_FCHMOD
 
-#ifdef LINUX
 #include <getopt.h>
+#ifdef LINUX
 #endif
 
 #if defined(SCO) || defined(UNIXWARE) || defined(SNI) || defined(NCR) || defined(NEC)
